package com.yz.food.service.impl;

import com.yz.food.dao.DoubtMapper;
import com.yz.food.pojo.Doubt;
import com.yz.food.service.DoubtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoubtServiceImpl implements DoubtService {
    @Autowired
    private DoubtMapper doubtMapper;

    /**
     * 获取全部问答
     * @return
     */
    @Override
    public List<Doubt> getAll() {
        return doubtMapper.getAll();
    }
}
